package mi.payment.ui.print.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.LinearLayout;

import java.util.List;

import mi.payment.R;
import mi.payment.db.dao.PayDetail;

/**
 * Created by longx on 2017/7/20.
 */

public class CardDetailsView extends FrameLayout {

    private DetailListView detailListView;

    public CardDetailsView(Context context) {
        super(context);
        initView();
    }

    public CardDetailsView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    public CardDetailsView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }

    private void initView(){
        View.inflate(getContext(),R.layout.view_card_details,this);
        detailListView = (DetailListView) this.findViewById(R.id.lll);
    }

    public void setData(List<PayDetail> list){
        detailListView.fillData(list);
    }

}
